package control;

//import managment.ArraySource;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import view.View;

/**
 * @author  Owner
 */
public class RemoveControl implements SelectionListener{

	private View view;
//	private ArraySource arraySource;
	
	public RemoveControl() {
	view = View.getInstance(); 
	}

	public void widgetDefaultSelected(SelectionEvent arg0) {
	}

	public void widgetSelected(SelectionEvent arg0) {
		//remove first from arrayList then...
		view.removeFromlist(view.getSelectArrayIndex());
	}

}
